package com.wn32.main.demo16;

import okhttp3.OkHttp;
import okhttp3.OkHttpClient;
import okhttp3.Request;

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        String api="http://localhost:8001/admin/selectAll";
        Request req = new Request.Builder().url(api).build();
        String s = new OkHttpClient().newCall(req).execute().body().string();
        System.out.println(s);
    }
}
